package cn.tedu._05mvcboot02.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 添加用户的DTO类
 */
@Data
public class UserInsertDTO {
    @NotNull
    @ApiModelProperty(value = "用户名",required = true,example = "Tony")
    private String username;
    @NotNull
    @ApiModelProperty(value = "密码",required = true,example = "123456")
    private String password;
    @ApiModelProperty(value = "昵称",required = true,example = "Tony")
    private String nickname;
}
